// index文件专门用来暴露方法给前端
package program

import "github.com/wailsapp/wails/v3/pkg/application"

type ProgramFunc struct {
	App *application.App
}

func (g *ProgramFunc) SetApp(app *application.App) {
	g.App = app
}

func (g *ProgramFunc) GetConfig() string {
	return GetConfig()
}

func (g *ProgramFunc) SetConfig(jsonData string) bool {
	return SetConfig(jsonData)
}

func (g *ProgramFunc) OpenNewWindow(url string) {
	OpenNewWindow(url, g.App)
}
